#!/bin/bash

if [ ! -n "${1}" ]; then
        echo "param 1: pod name!"
        exit -1;
fi
if [ -z "${2}" ]; then
       kubectl exec -it $1 /bin/bash
else
	kubectl exec -it $1 -c $2 /bin/bash
fi
